package day04expand;

public class Text3 {
    public static void main(String[] args) {
        int count = 0;
        for(int year=1900;year<=2023;year++){
            if((year%4==0 && year%100!=0) || year%400==0){
                System.out.println(year);
                count++;
                if(count%10==0){
                    System.out.println();
                }
            }
        }
    }
}
